# -*- coding: utf-8 -*-

from sql import user_info
from QRcodecelery import send_notify_template_by_openid





class tempmess(object):
    @classmethod
    def send_messtouser(cls,uid,cop_id):
        print uid,cop_id
        openid=user_info(uid,cop_id)
        print openid
        if openid:
            send_notify_template_by_openid (openid[0])
            return 0
        else:
            return 2








